package com.marvels.approve.loan.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.marvels.approve.common.dto.InsurancePolicyDTO;
import com.marvels.approve.loan.dto.McamAcLoanApplyBdInfo;
import com.marvels.approve.loan.dto.McamInsuranceRateConfDto;


public interface McamLoanInsurancePolicyInfoMapper {

	/**
	 * 根据loanId查询保单信息
	 * @param loanId
	 * @return
	 */
    public  List<InsurancePolicyDTO> selectInsuranceByLoanId(@Param("loanId") String loanId);
    
    public int insertInsurancePolicy(McamAcLoanApplyBdInfo dto);
    
    public InsurancePolicyDTO selectInsuranceByLoanIdAndCompany(@Param("loanId") String loanId,@Param("companyCode") String companyCode);
    
    public McamInsuranceRateConfDto selectInsuranceRate(@Param("productType") String productType,@Param("insuranceCode") String insuranceCode);
    
    public int updateInsuranceAmt(McamAcLoanApplyBdInfo dto);
    
    public int modifyBdPassword(@Param("insurance")InsurancePolicyDTO loanApplyInfoDto,@Param("oldPolicySrsFlag")Integer oldPolicySrsFlag);
}